package com.dht.xiao.jianye.base.serialport;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import static com.dht.xiao.jianye.base.serialport.ServiceType.AsyncServices;
import static com.dht.xiao.jianye.base.serialport.ServiceType.SyncServices;

/**
 * @author :      fangbingran
 * @aescription : 等级
 * @date :        2019/06/05  19:34
 */
@IntDef({SyncServices, AsyncServices})
@Retention(RetentionPolicy.SOURCE)
public @interface ServiceType {
    /**
     * 同步服务,适用于485
     */
    int SyncServices = 0;
    /**
     * 异步服务适用于485和232
     */
    int AsyncServices = 1;

}
